package com.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.dao.InvoiceHistoryMapper;
import com.park.model.InvoiceHistory;
import com.park.service.InvoiceHistoryService;

@Service
public class InvoiceHistoryServiceImpl implements InvoiceHistoryService {

	@Autowired
	private InvoiceHistoryMapper invoiceHistoryMapper;
	@Override
	public List<InvoiceHistory> getInvoiceInfo(String userId, String startTime, String endTime,int startPage,int pageSize) {
		// TODO Auto-generated method stub
		return invoiceHistoryMapper.getInvoiceInfo(userId,startTime,endTime,startPage,pageSize);
	}
	@Override
	public int getInvoiceInfoTotal(String userId, String startTime, String endTime) {
		// TODO Auto-generated method stub
		return invoiceHistoryMapper.getInvoiceInfoTotal(userId,startTime,endTime);
	}
	@Override
	public int insert(InvoiceHistory invoiceHistory) {
		// TODO Auto-generated method stub
		return invoiceHistoryMapper.insertSelective(invoiceHistory);
	}

}
